﻿using System.Collections.Generic;
using SimpleServiceBus.EndpointManagement.Wcf.Contracts.Data;

namespace SimpleServiceBus.EndpointMonitor.Web.Models
{
    public class EndpointViewData
    {
        public string EndpointName { get { return Endpoint.Name ?? Endpoint.EndpointID; } }
        public ManagedEndpointContract Endpoint { get; set; }

        public IList<EndpointErrorContract> Top25Errors { get; set; }
    }
}
